from datetime import datetime


def calculate_age(birthday):
    now=datetime.now()
    bday_split=birthday.split('-')
    bday_year = int(bday_split[0])
    bday_month=int(bday_split[1])
    bday_day=int(bday_split[2])


def main():
    # 提示用户以 YYYY-MM-DD 格式输入他们的生日
    birthday = input("Please enter your birthday in the format YYYY-MM-DD: ")
    # 调用 calculate_age 函数来计算年龄
    age = calculate_age(birthday)
    # 打印计算出的年龄
    print(f"Your age is {age} years.")


if __name__ == "__main__":
    main()